﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using YunBox2.Contracts.Core;

namespace YunBox2.Contracts
{
    [ServiceContract]
    public interface ISystemService
	{
		#region 当前用户管理


        [OperationContract]
        bool Login(string userName, string password);

        [OperationContract]
        User GetMyProfile();

        /// <summary>
        /// 注销
        /// </summary>
        /// <param name="clientID">客户端ID</param>
        [OperationContract]
        bool Logoff();



        [OperationContract]
        bool ChangeMyPassword(string oldPassword, string NewPassword);

        [OperationContract]
        bool ChangeMyEmail(string email);

		#endregion

        #region 公司信息管理

        [OperationContract]
        bool CompanyProfileToUpdate(Guid clientID,CompanyProfile companyProfile);

        [OperationContract]
        CompanyProfile CompanyProfileToGetProfile(Guid clientID);

        #endregion
	}
}